<?php

namespace app\customer\controller;
use app\common\controller\PCBase;
use  app\customer\logic\BatchMessageLogic;
use  think\App;
class PrivateMessage extends PCBase
{





    /**
     * @desc   群发私信列表
     * @author luckyXiong
     * @date   2024-05-24
     */
    public function index(){
        $data  = $this->request->post();
        $res   = (new BatchMessageLogic)->get_private_messages($data);
        return $this->jsonMessage(200,'true','获取成功',$res);
    }


    /**
     * @desc   群发消息操作
     * @author luckyXiong
     * @date   2024-05-24
     */
    public function batchSendMess(){
        $data  = $this->request->post();
        $res   =(new BatchMessageLogic)->batch_send_messages($data);
        return $this->jsonMessage(200,'true','操作成功',$res);
    }



}